import request from '@/utils/request'

// 查询数据字典列表
export function listDataDictionary(query) {
  return request({
    url: '/baseModule/dataDictionary/list',
    method: 'get',
    params: query
  })
}

// 查询数据字典详细
export function getDataDictionary(id) {
  return request({
    url: '/baseModule/dataDictionary/' + id,
    method: 'get'
  })
}

// 新增数据字典
export function addDataDictionary(data) {
  return request({
    url: '/baseModule/dataDictionary',
    method: 'post',
    data: data
  })
}

// 修改数据字典
export function updateDataDictionary(data) {
  return request({
    url: '/baseModule/dataDictionary',
    method: 'put',
    data: data
  })
}

// 删除数据字典
export function delDataDictionary(id) {
  return request({
    url: '/baseModule/dataDictionary/' + id,
    method: 'delete'
  })
}
